{extend name="main/index" /}
{block name="main"}
<style>
    table, table tr th, table tr td {
        border: 1px solid #0094ff;
        text-align: center;
    }

    table {
        width: 200px;
        min-height: 25px;
        line-height: 25px;
        text-align: center;
        border-collapse: collapse;
        margin: 0 auto;
        margin-top: 50px;
        font-size: 12px;
        width: 800px;
        height: 100px;
    }

    /*初始化样式*/
    * {
        list-style: none;
        margin: 0;
        padding: 0;

    }

    h1 h3 {
        text-align: center;
    }
</style>

<!-- Start right content -->
<div class="content-page">
    <div class="content">
        <h1><i class='fa fa-table'></i>{$title} <h3><a href="{:url('admin/authority/add')}">添加权限</a></h3></h1>
        <table>
            <tr>
                <th>编号</th>
                <th>权限名称</th>
                <th>控制器名</th>
                <th>方法</th>
                <th>状态</th>
                <th>操作</th>

            </tr>
            {volist name="list" key="k" id="v" }
            <tr>
                <td>{$v['id']}</td>
                <td>{$v['authority']}</td>
                <td> {$v['controller']}</td>
                <td> {$v['method']}</td>
                <td>
                    <button id="open">启用</button>
                </td>
                <td><a href="">删除</a> <a href="">修改</a></td>
            </tr>
            {/volist}
        </table>
        <script src="static/admin/assets/js/jquery-3.3.1.min.js"></script>
        <script>





        </script>
    </div>
</div>
{/block}